package com.jxb.myshop.dao;



import com.jxb.myshop.entity.Product;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: COS
 * @time: 2022/9/17 8:58
 * @description:
 */
public interface ProductDao {
    List<Product> getAll() throws SQLException;

    List<Product> getAllProByTid(int tid) throws SQLException;

    Long getTotalCount(int tid) throws SQLException;

    List<Product> getProByPageAndTid(int tid, int startRow, int pageSize) throws SQLException;

    Product getProById(int pid) throws SQLException;
}
